home *** CD-ROM | disk | FTP | other *** search
/ The Mac 13 / the-mac-13.iso / Games / New Dark Forces Levels / Paul’s Levels / How To Create VUEs next >
Encoding:
Text File  |  1995-07-27  |  2.7 KB  |  69 lines  |  [TEXT/ttxt]

  1. HOW TO CREATE YOUR OWN .VUES (3DO ANIMATION FILES)
  2.  
  3. By: PNem@aol.com
  4.  
  5. The format of the .vue files are very simple - just use the spreadsheet 
  6. "Vue01.xls" (it's in Excel 4.0 format).  This is the actual spreadsheet that 
  7. was used for the first portion of the TIE Defender's .vue.  All that needs to 
  8. be done is to edit the spreadsheet and then copy columns J - V to your .vue 
  9. text file.  Note that I use 'Heading', while DF uses 'Yaw' - they are the 
  10. same.  Also, 'Scale' refers to the size of the .3do.  Use Scale=1 for most, 
  11. although my TIE Defender hologram is Scale=.3.
  12.  
  13. This what a sample .vue looks like:
  14.  
  15. vue 1
  16. transform "def" #1 #2 #3 #4 #5 #6 #7 #8 #9 #10 #11 #12
  17. transform "def" ......
  18.  
  19. vue 1 <- always use this type of .vue.  {Note:vue 201 is the same as vue 1,
  20. except each frame is numbered, and several different .vues are combined
  21. into one file, each referenced by its own name ("def" in my example)}
  22.  
  23. "def" is the object name (referenced by the .o file, see below)
  24.  
  25. The values for #1 thru #9 are the coefficeints of the rotating and scaling
  26. matrix that is used by DF to determine how to draw the .3do.  Their values
  27. can be readily calculated by the spreadsheet that I've provided.  The 
  28. formulas are:
  29. #1: Scale x [cos(H) x cos(R)]
  30. #2: Scale x [-sin(H) x cos(P) + cos(H) x sin(R) x sin(P)]
  31. #3: Scale x [-sin(H) x sin(P) - cos(H) x sin(R) x cos(P)]
  32. #4: Scale x [sin(H) x cos(R)]
  33. #5: Scale x [cos(H) x cos(P) + sin(H) x sin(R) x sin(P)]
  34. #6: Scale x [cos(H) x sin(P) - sin(H) x sin(R) x cos(P)]
  35. #7: Scale x [sin(R)]
  36. #8: Scale x [-cos(R) x sin(P)]
  37. #9: Scale x [cos(R) x cos(P)]
  38.  
  39. The values for #10 thru #12 are:
  40. #10: X coordinate
  41. #11: Z coordinate
  42. #12: -Y coordinate
  43.  
  44. The .o file should have the following logic associated with the .3do:
  45.  
  46. SEQ
  47.  KEY:   TRUE                    /* This always needs to be present. */
  48.  VUE:   TIEDEF.VUE "DEF"        /* This is the filname of the .vue, with the
  49.                 object name in quotes. */
  50.  VUE_APPEND: TIEDEF2.VUE "DEF"  /* Same as the previous line, except this
  51.                 will be run directly after the first .vue is 
  52.                 finished. */
  53.  PAUSE: TRUE                    /* If this line is used, the .vue will run 
  54.                 exactly once (like Kyle's ship taking off).
  55.                 If this line is omitted, the .vue will 
  56.                 continuously repeat itself. */
  57. SEQEND
  58.  
  59. The spreadsheet ("VUE01.XLS"):
  60. The spreadsheet format is straightforward.  The only confusing items are 
  61. probably the first two columns (labeled "Index 1" and "Index 2"), which are 
  62. used to calculate the acceleration and distance traveled by the .3do.  You do 
  63. NOT need to use these.  All that you need are columns J - V.  You can use 
  64. whatever formulas you want for Heading, Pitch, Roll, x, y, and z.
  65.  
  66. If you have any questions, suggestions, improvements, or comments, please 
  67. E-mail me at PNem@aol.com
  68.  
  69.